﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ass5Vinyl
{
    public partial class CustomerManagementGUI : Form
    {
          VIEW.DBViewer dbViewer;
        public CustomerManagementGUI()
        {
            InitializeComponent();
             dbViewer = new VIEW.DBViewer();
        }

        private void bt_addNewCustomer_Click(object sender, EventArgs e)
        {
            VIEW.CustomerInsertion window = new VIEW.CustomerInsertion();
            window.ShowDialog();
        }

        private void bt_showReport_Click(object sender, EventArgs e)
        {
            try
            {
                dbViewer.FillData("customer");
                dbViewer.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        
    }
}
